package com.xyoto.community.vo;

import com.xyoto.community.utils.PictureUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 发送私信图片vo
 */
@ApiModel("发送私信图片vo")
@Data
public class SendPicturePrivateLetterVO {
    @ApiModelProperty("图片链接")
    private String path;

    @ApiModelProperty("发送时间")
    private Date sendTime;

    public SendPicturePrivateLetterVO() {
    }

    public SendPicturePrivateLetterVO(String path, Date sendTime) {
        this.path = PictureUtils.addPrefix(path);
        this.sendTime = sendTime;
    }

    public void setPath(String path) {
        this.path = PictureUtils.addPrefix(path);
    }
}
